package lab02.test23;
import java.util.Scanner;
import java.util.Calendar;
public class TEST {
    public static void main(String[] args) {

        Calendar time = Calendar.getInstance();

        Scanner scan = new Scanner(System.in);

        int year, month, day;
        System.out.println("出生的年:");
        year = scan.nextInt();

        System.out.println("出生的月:");
        month = scan.nextInt();

        System.out.println("出生的日:");
        day = scan.nextInt();

        time.set(year, month - 1, day);

        int Day = time.get(Calendar.DAY_OF_WEEK);

        System.out.println("星期" + (Day - 1));

    }
}